package com.bootdo.sell.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.sell.dao.OpDao;
import com.bootdo.sell.domain.OpDO;
import com.bootdo.sell.service.OpService;



@Service
public class OpServiceImpl implements OpService {
	@Autowired
	private OpDao opDao;
	
	@Override
	public OpDO get(Integer oid){
		return opDao.get(oid);
	}
	
	@Override
	public List<OpDO> list(Map<String, Object> map){
		return opDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return opDao.count(map);
	}
	
	@Override
	public int save(OpDO op){
		return opDao.save(op);
	}
	
	@Override
	public int update(OpDO op){
		return opDao.update(op);
	}
	
	@Override
	public int remove(Integer oid){
		return opDao.remove(oid);
	}
	
	@Override
	public int batchRemove(Integer[] oids){
		return opDao.batchRemove(oids);
	}
	
}
